package com.itheima.mRadix.demo;

public class Demo6 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;

        a = a ^ b; //a = a ^ b;
        b = a ^ b; //b = a ^ b ^ b;
        a = a ^ b; //a = a ^ b ^ b;

        System.out.println("a =" + a);
        System.out.println("b =" + b);
        int temp = a;
        a = b;
        b = temp;
        System.out.println("a =" + a);
        System.out.println("b =" + b);
    }
}
